package com.codefish.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.codefish.entity.ProvinceCityCounty;

import java.util.List;
import java.util.Map;

/**
 * @Classname ProvinceCityCountyService
 * @Description TODO
 * @Date 2021/4/30 22:16
 * @Created 学兔斯基眯眼看世界
 */
public interface ProvinceCityCountyService extends IService<ProvinceCityCounty> {

    /**
     * 省市区树形结构查询
     *
     * @return
     */
    List<Map<String, Object>> queryProvinceCityCounty();

    /**
     * 查询全部的省
     *
     * @return
     */
    List<ProvinceCityCounty> queryProvince();

    /**
     * 根据id查询对应下级
     *
     * @param id
     * @return
     */
    List<ProvinceCityCounty> queryCityByProvinceId(Long id);
}
